﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="Detail.aspx.vb" Inherits="KoreanFood.Detail" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        <br />
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataKeyNames="ID" DataSourceID="DetailDataSource">
            <Columns>
                <asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False" 
                    ReadOnly="True" SortExpression="ID" />
                <asp:BoundField DataField="RestaurantName" HeaderText="RestaurantName" 
                    SortExpression="RestaurantName" />
                <asp:BoundField DataField="RestaurantMenu" HeaderText="RestaurantMenu" 
                    SortExpression="RestaurantMenu" />
                <asp:ImageField DataImageUrlField="RestaurantPicture" HeaderText="Picture">
                    <ControlStyle Height="200px" Width="200px" />
                </asp:ImageField>
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="DetailDataSource" runat="server" 
            ConnectionString="<%$ ConnectionStrings:RestaurantConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:RestaurantConnectionString.ProviderName %>" 
            SelectCommand="SELECT [ID], [RestaurantName], [RestaurantPicture], [RestaurantMenu] FROM [Restaurants] WHERE ([ID] = ?)">
            <SelectParameters>
                <asp:QueryStringParameter Name="ID" QueryStringField="ID" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
    </p>
    </asp:Content>
